package org.example.commend.t3



class T1 {

    fun test() {
        var a = 1;
        var b = 2;

        val temp: Int

        temp = a
        a = b
        b = temp

        println("$a $b")
    }

    fun test2() {
        var a = 1
        var b = 2

        b = a.apply {
            a = b
        }
        println("$a $b")
    }

    fun test3() {
        var a = 1
        var b = 2

        a = a xor b
        b = a xor b
        a = a xor b
        println("$a $b")

    }

}